import request from '@/utils/request'

/**
 * 获取采样日历
 * @param {Array} Search 0:年份 1:月份
 */
export function getDatePlans(params) {
  return request({
    url: '/API/QualityTest/GetDateRecords',
    method: 'get',
    params,
    successMsg: false, //请求成功通知，支持String & Boolean
    failMsg: true //请求失败通知，支持String & Boolean
  })
}

/**
 * 获取获取采样记录
 * @param {String} iautoid 主键
 */
export function getSampleRecordById(params) {
  return request({
    url: '/API/QualityTest/GetSampleRecordById',
    method: 'get',
    params,
    successMsg: false, //请求成功通知，支持String & Boolean
    failMsg: true //请求失败通知，支持String & Boolean
  })
}